home *** CD-ROM | disk | FTP | other *** search
- Path: news.coventry.ac.uk!not-for-mail
- From: dj@coventry.ac.uk (Dave Jackson)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Screen W/Custom Pens. HELP!
- Date: 1 Mar 1996 12:40:47 -0000
- Organization: Coventry University
- Message-ID: <4h6r8f$71s@leofric.coventry.ac.uk>
- References: <4h3geg$qa4@aggedor.rmit.edu.au>
- NNTP-Posting-Host: leofric.coventry.ac.uk
- Keywords: Custom Screen Pens
-
- In article <4h3geg$qa4@aggedor.rmit.edu.au>,
- Steve Tanti <t930340@minyos.its.rmit.EDU.AU> wrote:
- >
- >I am just learning to program my Ami (A1200) and have the RKRM (Libs and
- >Dev's only).
- >
- >I am trying to get it to open a custom screen with SA_Pens that I want.
- >I am doing the following:
- >
- >static UWORD mypens[] = {
- > 0x999, 0x000, 0xfff, 0x57a,
- > 0x888, 0xaaa, 0xa98, 0xe9a, ~0
- > };
- >
-
- I think your pens should be colour INDEX's! i.e.
-
- static UWORD mypens[] = { 0, 1, 1, 2, 3, 0, 2, ~0 } etc.
-
- The pens you've defined above are actual colours which you specify
- for SA_Colors. If you're using an a1200 you can use SA_Colors32 to get
- the full 24-bit palette, the structure is really weird, something like:
-
- ULONG mycolours32[] = { num_colours_in_this_struct << 16,
- r << 24, g << 24, b << 24,
- r << 24, g << 24, b << 24,
- .
- .
- .
- NULL <- not sure about this, can't hurt though
- } ;
-
- Dave Jackson
-
- --
- "To hell with the Champagne, we can celebrate with urine re-cyc!"
-
-